package com.yenlien.traceyun.plant.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.yenlien.traceyun.webase.entity.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * @Date 2022/7/18
 * @Author jiaLong
 * @Descript 世纪瑞通传感器
 */
@Data
@Entity
@Table(name = "t_sjrt")
public class ShiJiRuiTong extends BaseEntity implements Serializable {
    private static final long serialVersionUID = -5152963930027455032L;
    @ExcelIgnore
    private String equipmentId;         // 自己平台的设备ID
    @ExcelIgnore
    private String baseSoilId;          // 地块ID
    @ExcelIgnore
    private String companyId;
    @Column(name = "`param_name`")
    @Excel(name="参数名称", width = 8)
    private String ParamName;             // 参数名称
    private String equipmentName;       // 自己平台的设备名

    @Transient
    private String devId;

    @Column(name = "`param_unit`")
    @Excel(name="参数单位", width = 10)
    private String ParamUnit;             // 参数单位

    @Column(name = "`param_val`")
    @Excel(name="值", width = 10)
    private String ParamVal;              // 参数值

    @Column(name = "`c_time`")
    @Excel(name="采集时间", width = 13)
    private String Ctime;                 // 采集时间

    @Column(name = "`key`")
    @Excel(name="虫情监控图片地址", width = 25)
    private String Key;                   // 虫情监控图片 若该值不为空则代表该行数据是虫情监控

    @Transient
    private String Val;                   // 虫情监控图片时间

    @Transient
    @JsonIgnore
    private int sort;                   // 虫情监控图片时间
    @ExcelIgnore
    private String type;                  // 1=气象监测站  2=土壤墒情站  3=虫情测报仪  4=水质  5=杀虫灯  6=摄像机


    private String Num;                  // 杀虫灯  电击次数
    private String ChargeVoltage;                  // 杀虫灯  充电电压(mv)
    private String CellVoltage;                  // 杀虫灯  电池电压(mv)
    private String AT;                  // 杀虫灯  环境温度

    private Date createTime = new Date();        // 创建时间


    public String getCellVoltage() {
        return CellVoltage;
    }

    public void setCellVoltage(String cellVoltage) {
        CellVoltage = cellVoltage;
    }
}
